package com.wang.home.service.impl;

import com.wang.home.entity.Role;
import com.wang.home.mapper.RoleMapper;
import com.wang.home.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author wang
 * @since 2021-04-30
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {
@Autowired
    private RoleMapper roleMapper;
    @Override
    public Set<String> findRolesByStudentName(String studentName) {
        return roleMapper.findRolesByStudentName(studentName);
    }
}
